#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""
######################
## Sensors parameters
"""
SENSORS_path        = "{{SENSORS_PATH}}"
SENSORS_periph      = "motherboard"     # core | fan | motherboard,
SENSORS_num         = 1
SENSORS_trigger     = 29                # 1st treshold
SENSORS_trigger2    = 35                # 2nd treshold

"""
######################
## DB parameters
"""
DB_engine       = "sqlite3"             # only sqlite3 is available
DB_name         = "{{DB_PATH}}"
DB_password     = ""
DB_server       = ""
DB_user         = ""

"""
######################
## EMAIL parameters
"""
EMAIL_relay_host = ""    # Your email smtp server
EMAIL_relay_port = ""    # Your smtp server port
EMAIL_username   = ""    # username to login on stmp server
EMAIL_password   = ""    # password to login on stmp server
EMAIL_from       = ""    # "sender@domain.com"
EMAIL_to         = ""    # "receiver@domain.com"
EMAIL_cc         = ""    # "cc1@domain.com, cc2@domain.com"
EMAIL_subject    = "Temp report"
EMAIL_text       = ""    # the text for your email.

"""
######################
## ACTIONS ON MONITOR
This action is launched by cron job sensors-monitor.
"""
ACTION_monitor   = "mail"

"""
######################
## ACTIONS ON TRIGGERS
Triggers are launched by the daemon only.
"""
#Action to execute when the first treshold is reached ("mail" is default
# action)
ACTION_trigger   = "mail"
# Second action to execute when the second treshold is reached
ACTION_trigger2  = "/bin/bash -c 'date && /bin/echo \"TEMPERATURE ALERT\
 FROM SENSORS\"' >> /var/log/messages"

# number of times that you do first ACTION_trigger before doing
# ACTION_N_trigger if it is defined (default is empty).
N_trigger        = ""
# Action to execute when the first treshold has been reached
# ACTION_N_trigger times (default is empty).
ACTION_N_trigger = ""

"""
######################
## Time parameters
"""
# /etc/cron(.)d/sensors-tools script
# To modify these values after install, just edit the cron script
# directly
# Register log value every N minutes in database (5minutes by default)
LOG_time = "5"
# Register log value every N minutes in database (5minutes by default)
REPORT_time = "5"

# triggers
# Check every N minutes for the 1st alert (5minutes by default). If
# action is 'mail', you will receive an email every 5 minutes.
FIRST_alert_time = "5"
# Check every N minutes for the 2nd alert (2minutes by default). If
# action is shutdown on other computers from a list, you will halt a
# computer every 2 minutes.
SECOND_alert_time = "2"

"""
#######################
## Advanced parameters
"""
# if you have a process that exceeds a threshold of CPU usage
# and if that causes a temporary overheat for your sensor,
# you'll probably want to skip this process for your monitoring warnings

# If the next value is given, you must give a CPU percentage for
# this process.
PROC_SCRIPT_NAME_IGNORE = ""
# Percentage of CPU used => If this treshold is exceeded by the previous
# process, the sensorsd daemon will ignore monitoring message/actions.
CPU_MIN_VAL_FOR_PROC = ""
